import request from "@/common/request";
import {IPageResponse, IResponse, PageResponse} from "@/common/common";

export async function axiosGetRoleList(params: any): Promise<PageResponse> {
  return request({url: "/v1/app/role", method: "GET", params});
}

export async function axiosAddRole(data: any): Promise<IResponse> {
  return request({url: "/v1/app/role", method: "POST", data});
}

export async function axiosDeleteRole(data: any): Promise<IResponse> {
  return request({url: "/v1/app/role", method: "DELETE", data});
}
